<?php
require_once "session.php";
$name = $_POST["name"];
$tel = $_POST["tel"];
$weixin_id = $_SESSION["user"];
if (empty($name) && empty($tel)) {
    die("姓名、电话不能同时为空");
}
$user = $core->GetUserByWxId($weixin_id);
$result = $core->UpdateUser($user["id"], $tel, $user["icon"], $name);
echo $result;
